#ifndef COMMON_H_INCLUDED
#define COMMON_H_INCLUDED

#include "libayfly/ayfly.h"


#include "wx/string.h"
#include "wx/event.h"
#include "wx/image.h"

BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE(listBoxEvent, chip_NextTrack)
END_DECLARE_EVENT_TYPES()

BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE(myEvent, chip_CallbackFunction)
END_DECLARE_EVENT_TYPES()

enum chip_ {
	chip_AddFiles = wxID_HIGHEST + 50,
	chip_AddDir,
	chip_SaveList,
	chip_DoubleClickListBox,
	chip_NextTrack,	/// for event to down selected item
	chip_CallbackFunction	/// called if callback working
};
/*
#ifdef __WINDOWS__		/// так делать нельзя :)
	#define chipText (const char*)
#else
	#define chipText (const wchar_t*)
#endif
*/

#define chipVersion "0.04"

#define chip_YES 1
#define chip_NO -1

inline void print(const char* str) {
	printf("line %s\n", str);
}

extern const char* authors[];


#endif // COMMON_H_INCLUDED
